package org.NooLab.itexx.stuctures;

import java.io.Serializable;

import org.NooLab.itexx.app.gui.definition.ITexxWindowGuiIntf;






/**
 * 
 * 
 * 
 * 
 *
 */
public class GuiPersistenceData implements Serializable{

	
	String focusNormal    = "";
	String focusMandatory = "";
	String focusExcluding = "";
	String focusTolerated = "";
	
	String focusNormalFilename = "" ; 
	
	// ========================================================================
	public GuiPersistenceData(){
		
	}
	
	// for cloning
	public GuiPersistenceData(GuiPersistenceData indata) {
	
		if (indata==null){
			return;
		}
		focusNormal    = indata.focusNormal ;
		focusMandatory = indata.focusMandatory   ;
		focusExcluding = indata.focusExcluding   ;
		focusTolerated = indata.focusTolerated   ;
		
		focusNormalFilename = indata.focusNormalFilename ;
	}

	
	// ========================================================================


	public void getFocusSettings( ITexxWindowGuiIntf windowGui ) {
		//
		String str;

		// TextNormal, TextMandatory, TextExclude, TextTolerated
		str = windowGui.getTextNormal().getText();
		setFocusNormal(str);

		str = windowGui.getTextMandatory().getText();
		setFocusMandatory(str);

		str = windowGui.getTextExclude().getText();
		setFocusExcluding(str);

		str = windowGui.getTextTolerated().getText();
		setFocusTolerated(str);

	}	
	
	// ------------------------------------------------------------------------
	
	public String getFocusNormal() {
		return focusNormal;
	}

	public void setFocusNormal(String focusNormal) {
		this.focusNormal = focusNormal;
	}

	public String getFocusMandatory() {
		return focusMandatory;
	}

	public void setFocusMandatory(String focusMandatory) {
		this.focusMandatory = focusMandatory;
	}

	public String getFocusExcluding() {
		return focusExcluding;
	}

	public void setFocusExcluding(String focusExcluding) {
		this.focusExcluding = focusExcluding;
	}


	public String getFocusTolerated() {
		return focusTolerated;
	}

	public void setFocusTolerated(String focusTolerated) {
		this.focusTolerated = focusTolerated;
	}

	public String getFocusNormalFilename() {
		return focusNormalFilename;
	}

	public void setFocusNormalFilename(String focusNormalFilename) {
		this.focusNormalFilename = focusNormalFilename;
	}

	
	
	
	
	
	
	
	
}
